package com.yy.poly_.polyarr_;

/**
 * chapter08  com.yy.poly_.polyarr_
 * 2023-04-07 15:44
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/4/7 15:44
 */
public class Person {
    private String name;
    private int age;



    public Person(String name, int age){
        this.name = name;
        this.age = age;
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return age;
    }
    public String say(){//返回名字和年龄
        return name + "\t" + age ;
    }
}
